package com.xiaomayi.cms.biz;

import com.alibaba.druid.spring.boot3.autoconfigure.DruidDataSourceAutoConfigure;
import com.baomidou.mybatisplus.autoconfigure.MybatisPlusAutoConfiguration;
import com.xiaomayi.feign.annotation.EnableXFeignClients;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.boot.autoconfigure.security.servlet.SecurityAutoConfiguration;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;

/**
 * <p>
 * CMS应用服务
 * </p>
 *
 * @author 小蚂蚁团队
 * @since 2023-06-12
 */
//@SpringBootApplication(exclude = {
//        // 排除Druid数据源配置
//        DruidDataSourceAutoConfigure.class,
//        DataSourceAutoConfiguration.class
//})
//@EnableDiscoveryClient
//@EnableXFeignClients
@SpringBootApplication(exclude = {
        // 排除Druid数据源配置
        DruidDataSourceAutoConfigure.class,
        DataSourceAutoConfiguration.class,
        MybatisPlusAutoConfiguration.class,
        // 排除安全认证配置
        SecurityAutoConfiguration.class
}, scanBasePackages = {"com.xiaomayi.*"})
@MapperScan("com.xiaomayi.**.**.mapper")
@EnableDiscoveryClient
@EnableXFeignClients
public class CmsApplication {
    public static void main(String[] args) {
        SpringApplication.run(CmsApplication.class, args);
        System.out.println("(♥◠‿◠)ﾉﾞ  小蚂蚁云【CMS服务】启动成功   ლ(´ڡ`ლ)ﾞ");
    }
}